﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;

namespace ACM.MES.工序
{
    public interface IOperationRepository : IRepository<Operation, Guid>
    {
        Task<Operation> FindByOpCodeAsync(string name);
        Task<Operation> FindByDescriptionAsync(string name);

        Task<List<Operation>> GetListAsync(
            int skipCount,
            int maxResultCount,
            string sorting,
            string filter = null
        );
    }
}
